use super::gp::GP;
use std::ffi::c_void;

#[link(name = "usrtos", kind = "static")]
extern "C" {
    pub fn context(tmp: *const u8) -> *const c_void;
    pub fn UrstBindMem(handle: *const c_void, name: *const u8) -> *const c_void;
    pub fn log_len(handle: *const c_void, id: i32) -> i32;
    pub fn UsrtAlloc(handle: *const c_void, memName: *const u8, gp: *mut GP, size: u64);
    pub fn MemAlloc(m: *const c_void, gp: *mut GP, size: u64) -> *const c_void;
    pub fn RawGetBuf(m: *const c_void, from: u64) -> *const c_void;
}
